Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-480

SocketAppender is omitting CallerData.

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 0.9.17
    • 0.9.16
    • logback-classic
    • None

    Description

      LoggingEventVO is never assigning a value to callerDataArray so the caller data is omitted regardless of the value of SocketAppenders includeCallerData property.

      As far as I can tell, this should probably be implemented in
      LoggingEventVO build(ILoggingEvent le)
      like this:
      if(le.hasCallerData()) {
      ledo.callerData = le.getCallerData();
      }

      I'm unsure where the caller data should be obtained, though.
      LoggingEventPreSerializationTransformer will probably need an includeCallerData property that's initialized whenever the setIncludeCallerData of SocketAppender is called. It could then execute getCallerData(), if requested, before calling build.

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            jhuxhorn Joern Huxhorn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: